﻿@{
    ViewBag.Title = "Common Command";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
        <ol class="breadcrumb">
    <li><a href="/Home.html">Home</a></li>
    <li><a href="/WebApp/WebApi"> Sanelib WebApp</a></li>
    <li class="active">Api </li>
</ol>
       
            <div id="introduction">
                <h1 class="text-left">APIController</h1>
                <h4>System.Web.Http.APIController</h4>
            </div>
            <div>
                <p>
                    APIController uses following Interfaces and classes.<br />
                    <pre><code>public abstract class ApiController : IHttpController, IDisposable</code></pre>
                    Where IHttpController uses Method called ExecuteAsync which Executes the controller for synchronization.
                </p>
                <h3>Properties if APIController</h3>
                <img src="~/Images/Api/PropsAPI.png" class="img-thumbnail center-block" />
                <p> The Main objective of the API controller is too provide redirection to the incoming requests and response.</p>
                <pre><code>RedirectToRoute(String, IDictionary &lt; string, object &gt;)</code></pre>
                <pre><code>RedirectToRoute(String, Object) </code></pre>
                <pre><code>Redirect(String)<br />Protected method  Redirect(Uri)</code></pre>
                <article>Above Methods are used to redirect from the uri and the object or a simple response redirection over the module.</article>
            </div>
       